package com.ftg.product.controller;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author kangjx
 * @createTime 2022/9/8
 */
@RestController
public class ConfigController {


    @NacosValue(value = "${mess:nothins}",autoRefreshed = true)
    private String mess;


    @GetMapping(value = "/get")
    public String get() {
        return mess;
    }

}
